const Mock = require('mockjs')

const dataTemplate = {  
	'items|30': [{  
	id: '@id',  
	title: '@sentence(10, 20)', 
	'status|1': ['published', 'draft', 'deleted'],   
	author: '@cname', 
	display_time: '@datetime', 
	pageviews: '@integer(300, 5000)' 
	}]  
};  

module.exports = [
  {
    // url: '/list',
    type: 'get',
    response: config => {
      const items = data.items
      return {
        code: 20000,
        data: {
          total: items.length,
          items: items
        }
      }
    }
  }
]
